﻿using System;
using QueryBuilder.Core.Query.SqlTypes;

namespace QueryBuilder.Core.Query.Type
{
    /// <summary>
    /// 
    /// </summary>
    public class DoubleType : PrimitiveType
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DoubleType"/> class.
        /// </summary>
        public DoubleType() : base(SqlTypeFactory.Double)
        {
        }

        /// <summary>
        /// Gets the default value.
        /// </summary>
        /// <value>The default value.</value>
        public override object DefaultValue
        {
            get { return 0.0; }
        }

        /// <summary>
        /// Gets the name.
        /// </summary>
        /// <value>The name.</value>
        public override string Name
        {
            get { return "Double"; }
        }

        /// <summary>
        /// Gets the returned class.
        /// </summary>
        /// <value>The returned class.</value>
        public override System.Type ReturnedClass
        {
            get { return typeof (Double); }
        }
    }
}